Alternating permutation

In combinatorial mathematics, an alternating permutation of the set {1, 2, 3, ..., n} is an arrangement of those numbers into an order c1, ..., cn such that no element ci is between ci − 1 and ci + 1 for any value of i and c1< c2. In other words, ci < ci+ 1 if i is odd and ci > ci+ 1 if i is even. For example, the five alternating permutations of {1, 2, 3, 4} are:

This type of permutation was first studied by Désiré André in the 19th century.[1]

If the condition c1< c2 is dropped, so we only require that no element ci is between ci − 1 and ci + 1, then the permutation is called a zigzag permutation. By exchanging 1 with n, 2 with n − 1, etc., each zigzag permutation with c1> c2 can be paired uniquely with an alternating permutation.

Contents

Related integer sequences

The determination of the number, An, of alternating permutations of the set {1, ..., n} is called André's problem. If Zn denotes the number of zigzag permutations of {1, ..., n} then it is clear from the pairing given above that Zn = 2An for n ≥ 2. The numbers An are known as Euler zigzag numbers or Up/down numbers. The first few values of An are 1, 1, 1, 2, 5, 16, 61, 272, 1385, 7936, 50521, ... (sequence A000111 in OEIS). The first few values of Zn are 1, 1, 2, 4, 10, 32, 122, 544, 2770, 15872, 101042, ... (sequence A001250 in OEIS).

The numbers A2n with even indices are called secant numbers or zig numbers. The first few values are 1, 1, 5, 61, 1385, 50521, ... (sequence A000364 in OEIS). They appear as numerators in the Maclaurin series of sec x. Specifically,

\sec x = 1 %2B \frac{1}{2!}x^2 %2B \frac{5}{4!}x^4 %2B \cdots = \sum_{n=0}^\infty A_{2n} {x^{2n} \over ({2n})!}.

Secant numbers are related to Euler numbers by the formula E2n = (−1)nA2n. (En = 0 when n is odd.)

Correspondingly, the numbers A2n+1 with odd indices are called tangent numbers or zag numbers. The first few values are 1, 2, 16, 272, 7936, ... (sequence A000182 in OEIS). They appear as numerators in the Maclaurin series of tan x. Specifically,

\tan x = \frac{1}{1!}x %2B \frac{2}{3!}x^3 %2B \frac{16}{5!}x^5 %2B \cdots = \sum_{n=0}^\infty A_{2n%2B1} {x^{2n%2B1} \over ({2n%2B1})!}.

Tangent numbers are related to Bernoulli numbers by the formula

B_{2n} =(-1)^{n-1}\frac{2n}{4^{2n}-2^{2n}} A_{2n-1}

for n > 0.

Adding these series together gives the exponential generating function of the sequence An:

\sum_{n=0}^\infty A_n {x^n \over n!} = \sec x %2B \tan x = \tan\left({x \over 2} %2B {\pi \over 4}\right).
A_n = i^{n%2B1}\sum _{k=1}^{n%2B1} \sum _{j=0}^k {k\choose{j}} \frac{(-1)^j(k-2j)^{n%2B1}}{2^ki^kk}

See also

References

  1. ^ Jessica Millar, N.J.A. Sloane, Neal E. Young, "A New Operation on Sequences: the Boustrouphedon Transform" J. Combinatorial Theory, Series A 76(1):44–54 (1996)

Further reading

External links